package com.atguigu.lease.web.app.custom.config;

import com.atguigu.lease.web.app.interceptors.AppLoginInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author zhaolingqiao
 * @CreateTime 2024/12/15
 */
@Configuration
public class SpringMvcConfiguration implements WebMvcConfigurer {
    @Autowired
    private  AppLoginInterceptor appLoginInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        /*registry.addInterceptor(appLoginInterceptor).
                addPathPatterns("/app/**").
                excludePathPatterns("/app/login/**");*/
    }
}
